projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c07e21
)
(term_init): Fix previous change
author
Kenichi Handa
<handa@m17n.org>
Thu, 21 Aug 2003 11:36:08 +0000
(11:36 +0000)
committer
Kenichi Handa
<handa@m17n.org>
Thu, 21 Aug 2003 11:36:08 +0000
(11:36 +0000)
src/term.c
patch
|
blob
|
history
diff --git
a/src/term.c
b/src/term.c
index 506fc16ffb3bbd230937fe74fb7a687c42c4a472..bae059ea4398babc8e7c923b4fa9e97dbd8ca37a 100644
(file)
--- a/
src/term.c
+++ b/
src/term.c
@@
-2229,14
+2229,12
@@
to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.",
#endif
}
-#ifdef TERMINFO
- area = (char *) xmalloc (buffer_size);
-#else
+#ifndef TERMINFO
if (strlen (buffer) >= buffer_size)
abort ();
-
- area = (char *) xmalloc (strlen (buffer));
+ buffer_size = strlen (buffer);
#endif
+ area = (char *) xmalloc (buffer_size);
TS_ins_line = tgetstr ("al", address);
TS_ins_multi_lines = tgetstr ("AL", address);